import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Page1 from '../views/page1.vue'
import Index from '../views/Index.vue'
import Page2 from '../views/page2.vue'
const routes = [
  {
    path: '/',
    name: 'index',
    component: Index
  },
  {
    path: '/about',
    name: 'about',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
    }
  },
  {
    path: "/page1",
    name:'page1',
    component: Page1
  },
  {
    path: "/page2",
    name:'page2',
    component: Page2
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
